package com.dailyblue.java.project.bookstore.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dailyblue.java.project.bookstore.bean.Stock;
import com.dailyblue.java.project.bookstore.mapper.mapper.StockMapper;
import com.dailyblue.java.project.bookstore.service.StockService;
import com.dailyblue.java.project.bookstore.util.JsonResult;
import com.dailyblue.java.project.bookstore.util.ResultTool;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl extends ServiceImpl<StockMapper, Stock> implements StockService {

    @Override
    public JsonResult updateStock(Stock stock) {
        baseMapper.updateStock(stock);
        return ResultTool.success();
    }
}
